package com.xnx3.banmahuishou.core.entity;

import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import com.xnx3.j2ee.entity.BaseEntity;

/**
 * 代收点数据表
 * @author 王晓龙
 */
@Entity()
@Table(name = "laji_daishoudian")
public class Daishoudian extends BaseEntity implements java.io.Serializable {
	/**
	 * 代收点状态 1审核中
	 */
	public static final Short STATE_REVIEW = 1;
	/**
	 * 代收点状态 2审核通过
	 */
	public static final Short STATE_APPROVED = 2;
	/**
	 * 代收点状态 3审核驳回
	 */
	public static final Short STATE_REJECTED = 3;
	/**
	 * 代收点状态 4已冻结
	 */
	public static final Short STATE_FROZEN = 4;
	
	private Integer id;	//自增id
	private String daishoudianName;	//代收点名称
	private String daishoudianUsername;	//代收点联系人名称
	private String daishoudianPhone;	//代收点联系电话
	private String daishoudianAddress;	//代收点详细地址
	private Double latitude;	//纬度
	private Double longitude;	//经度
	private String remark;	//备注
	private String daishoudianImage;	//代收点门头照
	private Integer qishouUserid;	//骑手id,关联user.id
	private String qishouUsername;	//骑手姓名,关联user.nickname
	private String qishouPhone;	//骑手手机号,关联user.phone
	private Integer createTime;	//创建时间,十位时间戳
	private Short state;	//代收点状态,1:审核中,2:审核通过,3:审核驳回,4:已冻结
	private String refuseReason;	//驳回原因
	private String sheng;	//所在的省，如 山东省
	private String shi;	//所在的市，如 潍坊市
	private String qu;	//所在的区，如 奎文区
	private Integer dailishangUserid;	//代理商用户id,关联user.id
	private Integer wanggeUserid;	//网格用户id,关联user.id
	
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name = "daishoudian_name", columnDefinition="char(150) COLLATE utf8mb4_unicode_ci COMMENT '代收点名称' default ''")
	public String getDaishoudianName() {
		return daishoudianName;
	}
	public void setDaishoudianName(String daishoudianName) {
		this.daishoudianName = daishoudianName;
	}
	@Column(name = "daishoudian_username", columnDefinition="char(30) COLLATE utf8mb4_unicode_ci COMMENT '代收点联系人名称' default ''")
	public String getDaishoudianUsername() {
		return daishoudianUsername;
	}
	public void setDaishoudianUsername(String daishoudianUsername) {
		this.daishoudianUsername = daishoudianUsername;
	}
	@Column(name = "daishoudian_phone", columnDefinition="char(15) COLLATE utf8mb4_unicode_ci COMMENT '代收点联系电话' default ''")
	public String getDaishoudianPhone() {
		return daishoudianPhone;
	}
	public void setDaishoudianPhone(String daishoudianPhone) {
		this.daishoudianPhone = daishoudianPhone;
	}
	@Column(name = "daishoudian_address", columnDefinition="char(200) COLLATE utf8mb4_unicode_ci COMMENT '代收点详细地址' default ''")
	public String getDaishoudianAddress() {
		return daishoudianAddress;
	}
	public void setDaishoudianAddress(String daishoudianAddress) {
		this.daishoudianAddress = daishoudianAddress;
	}
	@Column(name = "latitude", columnDefinition="double(9) COMMENT '纬度' default '0'")
	public Double getLatitude() {
		return latitude;
	}
	public void setLatitude(Double latitude) {
		this.latitude = latitude;
	}
	@Column(name = "longitude", columnDefinition="double(9) COMMENT '经度' default '0'")
	public Double getLongitude() {
		return longitude;
	}
	public void setLongitude(Double longitude) {
		this.longitude = longitude;
	}
	@Column(name = "remark", columnDefinition="char(255) COLLATE utf8mb4_unicode_ci COMMENT '备注' default ''")
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	@Column(name = "daishoudian_image", columnDefinition="char(200) COLLATE utf8mb4_unicode_ci COMMENT '代收点门头照' default ''")
	public String getDaishoudianImage() {
		return daishoudianImage;
	}
	public void setDaishoudianImage(String daishoudianImage) {
		this.daishoudianImage = daishoudianImage;
	}
	@Column(name = "qishou_userid", columnDefinition="int(13) COMMENT '骑手id,关联user.id' default '0'")
	public Integer getQishouUserid() {
		return qishouUserid;
	}
	public void setQishouUserid(Integer qishouUserid) {
		this.qishouUserid = qishouUserid;
	}
	@Column(name = "qishou_username", columnDefinition="char(30) COLLATE utf8mb4_unicode_ci COMMENT '骑手姓名,关联user.nickname' default ''")
	public String getQishouUsername() {
		return qishouUsername;
	}
	public void setQishouUsername(String qishouUsername) {
		this.qishouUsername = qishouUsername;
	}
	@Column(name = "qishou_phone", columnDefinition="char(12) COLLATE utf8mb4_unicode_ci COMMENT '骑手手机号,关联user.phone' default ''")
	public String getQishouPhone() {
		return qishouPhone;
	}
	public void setQishouPhone(String qishouPhone) {
		this.qishouPhone = qishouPhone;
	}
	@Column(name = "create_time", columnDefinition="int(12) COMMENT '创建时间,十位时间戳' default '0'")
	public Integer getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Integer createTime) {
		this.createTime = createTime;
	}
	@Column(name = "state", columnDefinition="tinyint(3) COMMENT '代收点状态,1:审核中,2:审核通过,3:审核驳回,4:已冻结' default '0'")
	public Short getState() {
		return state;
	}
	public void setState(Short state) {
		this.state = state;
	}
	@Column(name = "refuse_reason", columnDefinition="char(200) COLLATE utf8mb4_unicode_ci COMMENT '驳回原因' default ''")
	public String getRefuseReason() {
		return refuseReason;
	}
	public void setRefuseReason(String refuseReason) {
		this.refuseReason = refuseReason;
	}
	@Column(name = "sheng", columnDefinition="char(20) COLLATE utf8mb4_unicode_ci COMMENT '所在的省，如 山东省' default ''")
	public String getSheng() {
		return sheng;
	}
	public void setSheng(String sheng) {
		this.sheng = sheng;
	}
	@Column(name = "shi", columnDefinition="char(20) COLLATE utf8mb4_unicode_ci COMMENT '所在的市，如 潍坊市' default ''")
	public String getShi() {
		return shi;
	}
	public void setShi(String shi) {
		this.shi = shi;
	}
	@Column(name = "qu", columnDefinition="char(20) COLLATE utf8mb4_unicode_ci COMMENT '所在的区，如 奎文区' default ''")
	public String getQu() {
		return qu;
	}
	public void setQu(String qu) {
		this.qu = qu;
	}
	@Column(name = "dailishang_userid", columnDefinition="int(11) COMMENT '代理商用户id,关联user.id' default '0'")
	public Integer getDailishangUserid() {
		return dailishangUserid;
	}
	public void setDailishangUserid(Integer dailishangUserid) {
		this.dailishangUserid = dailishangUserid;
	}
	@Column(name = "wangge_userid", columnDefinition="int(11) COMMENT '网格用户id,关联user.id' default '0'")
	public Integer getWanggeUserid() {
		return wanggeUserid;
	}
	public void setWanggeUserid(Integer wanggeUserid) {
		this.wanggeUserid = wanggeUserid;
	}
	@Override
	public String toString() {
		return "Daishoudian [id=" + id + ", daishoudianName=" + daishoudianName + ", daishoudianUsername="
				+ daishoudianUsername + ", daishoudianPhone=" + daishoudianPhone + ", daishoudianAddress="
				+ daishoudianAddress + ", latitude=" + latitude + ", longitude=" + longitude + ", remark=" + remark
				+ ", daishoudianImage=" + daishoudianImage + ", qishouUserid=" + qishouUserid + ", qishouUsername="
				+ qishouUsername + ", qishouPhone=" + qishouPhone + ", createTime=" + createTime + ", state=" + state
				+ ", refuseReason=" + refuseReason + ", sheng=" + sheng + ", shi=" + shi + ", qu=" + qu
				+ ", dailishangUserid=" + dailishangUserid + ", wanggeUserid=" + wanggeUserid + "]";
	}
	
}
